package com.company;

import com.company.simple.ProductCar;
import com.company.simple.SimpleProductCarFactory;

/**
 * 简单工厂模式代码测试
 */
public class TestForSimple {

    public static void main(String[] args) {
        //生产本田汽车
        ProductCar HondaCar = SimpleProductCarFactory.productCar("HONDA");
        HondaCar.product();

        //生产丰田汽车
        ProductCar toyotaCar = SimpleProductCarFactory.productCar("TOYOTA");
        toyotaCar.product();
    }
}
